package com.hddf.project.dao;

import java.util.List;

import org.hibernate.Session;

import com.hddf.project.pojos.ThirdCategory;

public interface ThirdCategoryDao {

	/**
	 * 添加三级类别
	 * 
	 * @param tc
	 * @param s
	 */
	public void add(ThirdCategory tc, Session s) throws Exception;

	/**
	 * 删除三级类别
	 * 
	 * @param third_category_id
	 * @param s
	 */
	public void delete(int third_category_id, Session s) throws Exception;

	/**
	 * 删除三级类别
	 * 
	 * @param tc
	 * @param s
	 */
	public void delete(ThirdCategory tc, Session s) throws Exception;

	/**
	 * 修改三级类别
	 * 
	 * @param tc
	 * @param s
	 */
	public void update(ThirdCategory tc, Session s) throws Exception;

	/**
	 * 获取指定三级类别
	 * 
	 * @param third_category_id
	 * @param s
	 * @return
	 */
	public ThirdCategory get(int third_category_id, Session s) throws Exception;

	/**
	 * 根据名称获取三级类别
	 * 
	 * @param name
	 * @param s
	 * @return
	 */
	public ThirdCategory getByName(String name, Session s) throws Exception;

	/**
	 * 获取全部三级类别
	 * 
	 * @param s
	 * @return
	 */
	public List<ThirdCategory> getList(Session s) throws Exception;

	/**
	 * 根据二级ID获取三级子类别
	 * 
	 * @param s_id
	 * @param s
	 * @return
	 */
	public List<ThirdCategory> getListBySecondCategoryId(int s_id, Session s);

}
